#include "mythread.h"

#include <QThread>

MyThread::MyThread(QObject *parent) : QObject(parent)
{

}

void MyThread::supportThread()
{
    while (this->isRun)
    {
        emit this->mySignal();
        QThread::sleep(1);
    }
}

void MyThread::setRun(bool b)
{
    this->isRun = b;
}
